package com.kaifamiao.month03.day0316;

public class ArrayListDemo {

    public static void main(String[] args) {
        ArrayList al = new ArrayList();
        al.add(0,"0000");
        al.add("123");
        al.add("洋洋");
        System.out.println("转换为字符串输出：" + al.convert());;
        System.out.println("洋洋所在的位置下标 ：" + al.index("洋洋"));
        System.out.println("删除第一个元素:" + al.remove(0));
        System.out.println("第二个元素：" + al.indexOf(1));
        System.out.println("统计：" + al.count());
        System.out.println("转换为字符串输出：" + al.convert());;
    }
}
